<template>
    <div class="integral-history">
        <search-form :searchArray="searchArray"></search-form>
        <elTable :formData="formData" @tableData="getList" ref="dataInfo">
                <el-table-column prop="name" label="单位名称" align="center"></el-table-column>
                <el-table-column prop="group" label="会员电话" align="center"></el-table-column>
                <el-table-column prop="group" label="之前积分" align="center"></el-table-column>
                <el-table-column prop="group" label="本次积分" align="center"></el-table-column>
                <el-table-column prop="loginTime" label="更新原因" align="center"></el-table-column>
                <el-table-column prop="loginTime" label="创建时间" align="center"></el-table-column>
                <el-table-column prop="action" label="操作" align="center">
                    <template slot-scope=""></template>
                </el-table-column>
        </elTable>
    </div>
</template>
<script>
import elTable from "@/components/xForm/elTable"
export default {
    name: 'integralHistory',
    components: {
        elTable
    },
    data () {
        return {
            formData: {
                currentPage: 1,
                pageSize: 10,
            },
            searchArray: [
                {
                    type:'input',
                    placeholder: '请输入单位名称',
                    value: '',
                    label: '单位名称',
                },
                {
                    type:'input',
                    placeholder: '请输入会员电话',
                    value: '',
                    label: '会员电话',
                },
                {
                    type:'input',
                    placeholder: '请输入更新原因',
                    value: '',
                    label: '更新原因',
                },
            ],
        }
    },
    methods: {
        getList(pageNo) {
            let dataInfo = [
                {
                    id: 1,
                    name: "你好",
                    createTime: '1595244696000'
                },
                {
                    id: 2,
                    name: "你好1",
                    createTime: '1595244696000'
                },
            ];
            let total = 10;
            this.$nextTick(() => {
                this.$refs.dataInfo.loadData(dataInfo, total);
            });
        },
    }
}
</script>
<style lang="scss" scoped>
.integral-history {
    .search-form {
        margin-bottom: 16px;
    }
}
</style>